Release 10.1A: OpenEdge Development:
Web Services


INTEGER

Table D–6 describes the supported castings in each 4GL parameter mode (INPUT and OUTPUT) between the 4GL INTEGER type and XML Schema.

Table D–6: 4GL data type cast—INTEGER
For this XML Schema type...
In this 4GL parameter mode...
OpenEdge...
string  
normalizedString 
INPUT 
Serializes the 4GL parameter into the XML Schema value as if the 4GL STRING( ) function was called on the INTEGER value.
OUTPUT 
De-serializes the XML Schema value as if the INTEGER( ) function was called on string value.
boolean 
INPUT 
Serializes an INTEGER value of 0 to false and all other values to true.
OUTPUT 
De-serializes a value of false to a 4GL INTEGER value of 0, and de-serializes a value of true to an INTEGER value of 1.
decimal 
INPUT 
Serializes the 4GL parameter into the SOAP request message according to the XML Schema serialization rules.
OUTPUT 
De-serializes the XML Schema value as if the INTEGER( ) function was called on the serialized 4GL DECIMAL value. This rounds any positions after the decimal point. If the XML Schema decimal value is outside the range of a 4GL INTEGER, OpenEdge raises a run-time error.
float 
INPUT 
Serializes the 4GL INTEGER value to a float according to the XML Schema rules. Some of the least significant digits of the INTEGER value are lost if the number of digits in the value is large.
OUTPUT 
De-serializes the XML Schema value into a 4GL INTEGER. If the XML Schema value overflows or underflows a 4GL INTEGER, OpenEdge raises a run-time error.
double 
INPUT 
Serializes the 4GL INTEGER value to a double according to the XML Schema rules.
OUTPUT 
De-serializes the XML Schema value into a 4GL INTEGER. If the XML Schema value overflows or underflows a 4GL INTEGER, OpenEdge raises a run-time error.
integer 
nonPositiveInteger 
negativeInteger 
long 
nonNegativeInteger 
unsignedLong 
unsignedInt 
positiveInteger 
INPUT 
Serializes the 4GL parameter into the SOAP request message according to the serialization rules for the XML Schema data type.
OUTPUT 
De-serializes the XML Schema value as if the 4GL INTEGER( ) function was called on the value. If the XML Schema value is outside the valid range of a 4GL INTEGER, OpenEdge raises a run-time error.
int 
INPUT 
Serializes the 4GL parameter into the SOAP request message according to the XML Schema serialization rules.
OUTPUT 
De-serializes the XML Schema value as if the 4GL INTEGER( ) function was called on the value.
short 
byte 
unsignedShort 
unsignedByte 
INPUT 
Serializes the 4GL parameter into the SOAP request message according to the serialization rules for the XML Schema data type. If the 4GL INTEGER value is outside the valid range of the XML Schema type, OpenEdge raises a run-time error.
OUTPUT 
De-serializes the XML Schema value as if the 4GL INTEGER( ) function was called on the value.
time 
INPUT 
Serializes the 4GL parameter into the SOAP request message according to the XML Schema serialization rules without a time zone. The 4GL INTEGER value is treated as the number of seconds since midnight.
OUTPUT 
De-serializes the XML Schema value to the number of seconds since midnight. The conversion loses fractions of seconds. If a time zone is specified in the value, the time is adjusted to the same instant in the local time zone.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095